package cn.ad.service;

import cn.ad.handler.SqlSessionHandler;
import cn.ad.model.Tree;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 应用分类服务层实现
 * 
 * @author yujuan.zhang
 * @from 2016-06-17
 * @since V1.0
 *
 */
@Service
public class AppClassesService {

	@Autowired
	private SqlSessionHandler sqlSessionHandler;

	/**
	 * 获取应用分类下拉列表
	 */
	public List<Tree> getAppClassesList() {
		return sqlSessionHandler.selectList("appClassesMapper.appClasses:list", null);
	}

}
